package com.itany;

import com.itany.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author：汤小洋
 * Date：2019-12-16 11:09
 * Description：<描述>
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext ac=new ClassPathXmlApplicationContext("classpath:consumer.xml");

        UserController userController = (UserController) ac.getBean("userController");

        userController.findUser();
    }
}
